package com.sunhao.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sunhao.common.utils.PageUtils;
import com.sunhao.gulimall.product.entity.AttrGroupEntity;
import com.sunhao.gulimall.product.vo.AttrGroupWithAttrsVo;
import com.sunhao.gulimall.product.vo.SkuItemVo;
import com.sunhao.gulimall.product.vo.SpuItemAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author sunhao
 * @email 19851621327@163.com
 * @date 2024-08-11 10:01:22
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, long catelogId);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);

    /**
     * 根据SpuId、三级分类Id获取分组属性
     * @param spuId
     * @param catalogId
     * @return
     */
    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

